<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:p="http://primefaces.org/ui">

 <h:head>
        <title>Ventes Privées</title>
</h:head>
<h:body>

<f:view>
<h:form>
		<fieldset style="font-size: 12; padding: 1em; width: 400px; margin-left: auto; margin-right: auto;">	
			<LEGEND>
						<h:graphicImage library="images" name="logo.gif" style="width:180px;height:25px"/>
			</LEGEND>
			<h:panelGrid columns="2">
				<h:outputLabel  style="font-size: 12" for="nomIn" value="Email: " />
				<h:inputText style="font-size: 12" id="nomIn" value="#{loginCtrl.email}" />
				<h:outputLabel style="font-size: 12" for="mdpIn" value="Mot de passe: "/>
				<h:inputSecret style="font-size: 12" id="mdpIn" value="#{loginCtrl.motDePasse}"/>
				<p:commandButton style="font-size: 12;" action="#{loginCtrl.seConnecter()}" value="Se connecter" ajax="false"/>
			</h:panelGrid>
			<h:outputText style="font-size: 12; color:red;" value="#{loginCtrl.messageLogin}"/>
			
		</fieldset>	
	<p:messages showDetail="true" autoUpdate="true"/>	
</h:form>

	
</f:view>
</h:body>
</html>